package edu.zut.Vehicle.phf.admin.domain;

import java.util.Objects;

public class Vehicle {
    private String ID;
    private String name;
    public Vehicle(String ID, String name) {
        this.ID=ID;
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Vehicle vehicle)) return false;
        return Objects.equals(ID, vehicle.ID) && Objects.equals(name, vehicle.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(ID, name);
    }

    public Vehicle() {

    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getID() {
        return ID;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
}
